import Vue from "vue";
import VueCompositionApi from '@vue/composition-api';
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from 'element-ui';
import * as echarts from 'echarts'; //echarts
import 'echarts-wordcloud'; // 词云
import 'echarts-liquidfill' // 水滴图
import 'element-ui/lib/theme-chalk/index.css';
import "../src/styles/main.less";
import qs from 'qs';
// import axios from 'axios'
import './utils/request';
import request from "./utils/request"; //
import {
  debounce,
  format_num,
  initTime,
  timestamp,
  format_time,
  format_timehm,
  formatDate,
  formatDateNew,  //毫秒值转换成 年月日时分秒  调用方式 YY-MM-DD hh:mm:ss 或者 YYYY-MM-DD hh:mm:ss  如果值获取时间 则直接hh:mm:ss 或  mm:ss
  formatRate,
  unique,
  trimStr,
  formateSeconds,
  formatNumberForTimestamp,
  urlPms,
  getStr,
  clearLocal
} from "./utils/utils.js";
Vue.prototype.urlPms = urlPms;
Vue.prototype.format_time = format_time;
Vue.prototype.format_timehm = format_timehm;
Vue.prototype.formateSeconds = formateSeconds;
Vue.prototype.debounce = debounce;
Vue.prototype.format_num = format_num;
Vue.prototype.initTime = initTime;
Vue.prototype.formatNumberForTimestamp = formatNumberForTimestamp;
Vue.prototype.timestamp = timestamp;
Vue.prototype.formatDate = formatDate;
Vue.prototype.formatDateNew = formatDateNew;
Vue.prototype.formatRate = formatRate;
Vue.prototype.unique = unique;
Vue.prototype.trimStr = trimStr;
Vue.prototype.getStr = getStr;
Vue.prototype.$axios = request;  //写成原型属性，
Vue.prototype.$qs = qs; 
Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.use(VueCompositionApi);

Vue.use(ElementUI,'small');

Vue.prototype.$echarts = echarts; //echarts
// Vue.prototype.$wordcloud = wordcloud; // 词云

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
